home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-1.iso / Files / System 7 / Frontier / Frontier SDK 2.1.sit / Frontier SDK 2.1 / Toolkits / IAC Tools / iachandler.c < prev    next >
MacBinary  |  1993-05-20  |  2.1 KB  |  [TEXT/KAHL]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Thu May 20 00:46:21 1993, modified Thu May 20 00:46:21 1993, creator Think C, type ASCII, 1516 bytes "iachandler.c" , at 0x66c 402 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[KAHL]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0c 69 61 63 68 61 6e | 64 6c 65 72 2e 63 00 00 |..iachan|dler.c..|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 00 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 05 ec 00 | 00 01 92 a8 20 bd 9d a8 |........|.... ...|
|00000060| 20 bd 9d 00 00 00 00 00 | 00 00 00 00 00 00 00 00 | .......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 40 a9 00 00 |........|....@...|
|00000080| 2f 2a a9 20 43 6f 70 79 | 72 69 67 68 74 20 31 39 |/*. Copy|right 19|
|00000090| 38 38 2d 31 39 39 32 20 | 55 73 65 72 4c 61 6e 64 |88-1992 |UserLand|
|000000a0| 20 53 6f 66 74 77 61 72 | 65 2c 20 49 6e 63 2e 20 | Softwar|e, Inc. |
|000000b0| 20 41 6c 6c 20 52 69 67 | 68 74 73 20 52 65 73 65 | All Rig|hts Rese|
|000000c0| 72 76 65 64 2e 2a 2f 0d | 0d 23 69 6e 63 6c 75 64 |rved.*/.|.#includ|
|000000d0| 65 20 22 69 61 63 69 6e | 74 65 72 6e 61 6c 2e 68 |e "iacin|ternal.h|
|000000e0| 22 0d 0d 0d 0d 0d 42 6f | 6f 6c 65 61 6e 20 49 41 |".....Bo|olean IA|
|000000f0| 43 69 6e 73 74 61 6c 6c | 68 61 6e 64 6c 65 72 20 |Cinstall|handler |
|00000100| 28 41 45 45 76 65 6e 74 | 43 6c 61 73 73 20 65 76 |(AEEvent|Class ev|
|00000110| 65 6e 74 63 6c 61 73 73 | 2c 20 41 45 45 76 65 6e |entclass|, AEEven|
|00000120| 74 49 44 20 69 64 2c 20 | 50 72 6f 63 50 74 72 20 |tID id, |ProcPtr |
|00000130| 68 61 6e 64 6c 65 72 29 | 20 7b 0d 09 0d 09 72 65 |handler)| {....re|
|00000140| 67 69 73 74 65 72 20 4f | 53 45 72 72 20 65 72 72 |gister O|SErr err|
|00000150| 63 6f 64 65 3b 0d 09 0d | 09 65 72 72 63 6f 64 65 |code;...|.errcode|
|00000160| 20 3d 20 41 45 49 6e 73 | 74 61 6c 6c 45 76 65 6e | = AEIns|tallEven|
|00000170| 74 48 61 6e 64 6c 65 72 | 20 28 65 76 65 6e 74 63 |tHandler| (eventc|
|00000180| 6c 61 73 73 2c 20 69 64 | 2c 20 28 45 76 65 6e 74 |lass, id|, (Event|
|00000190| 48 61 6e 64 6c 65 72 50 | 72 6f 63 50 74 72 29 20 |HandlerP|rocPtr) |
|000001a0| 68 61 6e 64 6c 65 72 2c | 20 30 2c 20 66 61 6c 73 |handler,| 0, fals|
|000001b0| 65 29 3b 0d 09 0d 09 49 | 41 43 67 6c 6f 62 61 6c |e);....I|ACglobal|
|000001c0| 73 2e 65 72 72 6f 72 63 | 6f 64 65 20 3d 20 65 72 |s.errorc|ode = er|
|000001d0| 72 63 6f 64 65 3b 0d 09 | 0d 09 72 65 74 75 72 6e |rcode;..|..return|
|000001e0| 20 28 65 72 72 63 6f 64 | 65 20 3d 3d 20 6e 6f 45 | (errcod|e == noE|
|000001f0| 72 72 29 3b 0d 09 7d 20 | 2f 2a 41 45 69 6e 73 74 |rr);..} |/*AEinst|
|00000200| 61 6c 6c 68 61 6e 64 6c | 65 72 2a 2f 0d 09 0d 09 |allhandl|er*/....|
|00000210| 0d 42 6f 6f 6c 65 61 6e | 20 49 41 43 72 65 6d 6f |.Boolean| IACremo|
|00000220| 76 65 68 61 6e 64 6c 65 | 72 20 28 41 45 45 76 65 |vehandle|r (AEEve|
|00000230| 6e 74 43 6c 61 73 73 20 | 65 76 65 6e 74 63 6c 61 |ntClass |eventcla|
|00000240| 73 73 2c 20 41 45 45 76 | 65 6e 74 49 44 20 69 64 |ss, AEEv|entID id|
|00000250| 2c 20 50 72 6f 63 50 74 | 72 20 68 61 6e 64 6c 65 |, ProcPt|r handle|
|00000260| 72 29 20 7b 0d 0d 09 72 | 65 67 69 73 74 65 72 20 |r) {...r|egister |
|00000270| 4f 53 45 72 72 20 65 72 | 72 63 6f 64 65 3b 0d 09 |OSErr er|rcode;..|
|00000280| 0d 09 65 72 72 63 6f 64 | 65 20 3d 20 41 45 52 65 |..errcod|e = AERe|
|00000290| 6d 6f 76 65 45 76 65 6e | 74 48 61 6e 64 6c 65 72 |moveEven|tHandler|
|000002a0| 20 28 65 76 65 6e 74 63 | 6c 61 73 73 2c 20 69 64 | (eventc|lass, id|
|000002b0| 2c 20 28 45 76 65 6e 74 | 48 61 6e 64 6c 65 72 50 |, (Event|HandlerP|
|000002c0| 72 6f 63 50 74 72 29 20 | 68 61 6e 64 6c 65 72 2c |rocPtr) |handler,|
|000002d0| 20 66 61 6c 73 65 29 3b | 0d 09 0d 09 49 41 43 67 | false);|....IACg|
|000002e0| 6c 6f 62 61 6c 73 2e 65 | 72 72 6f 72 63 6f 64 65 |lobals.e|rrorcode|
|000002f0| 20 3d 20 65 72 72 63 6f | 64 65 3b 0d 09 0d 09 72 | = errco|de;....r|
|00000300| 65 74 75 72 6e 20 28 65 | 72 72 63 6f 64 65 20 3d |eturn (e|rrcode =|
|00000310| 3d 20 6e 6f 45 72 72 29 | 3b 0d 09 7d 20 2f 2a 49 |= noErr)|;..} /*I|
|00000320| 41 43 72 65 6d 6f 76 65 | 68 61 6e 64 6c 65 72 2a |ACremove|handler*|
|00000330| 2f 0d 0d 0d 42 6f 6f 6c | 65 61 6e 20 49 41 43 68 |/...Bool|ean IACh|
|00000340| 61 6e 64 6c 65 72 69 6e | 73 74 61 6c 6c 65 64 20 |andlerin|stalled |
|00000350| 28 4f 53 54 79 70 65 20 | 76 63 6c 61 73 73 2c 20 |(OSType |vclass, |
|00000360| 4f 53 54 79 70 65 20 76 | 74 6f 6b 65 6e 2c 20 42 |OSType v|token, B|
|00000370| 6f 6f 6c 65 61 6e 20 66 | 6c 73 79 73 74 65 6d 68 |oolean f|lsystemh|
|00000380| 61 6e 64 6c 65 72 29 20 | 7b 0d 09 0d 09 2f 2a 0d |andler) |{..../*.|
|00000390| 09 72 65 74 75 72 6e 20 | 74 72 75 65 20 69 66 20 |.return |true if |
|000003a0| 74 68 65 72 65 27 73 20 | 61 20 68 61 6e 64 6c 65 |there's |a handle|
|000003b0| 72 20 69 6e 73 74 61 6c | 6c 65 64 20 77 69 74 68 |r instal|led with|
|000003c0| 20 74 68 65 20 69 6e 64 | 69 63 61 74 65 64 20 63 | the ind|icated c|
|000003d0| 6c 61 73 73 20 61 6e 64 | 20 69 64 2e 0d 09 0d 09 |lass and| id.....|
|000003e0| 69 66 20 66 6c 73 79 73 | 74 65 6d 68 61 6e 64 6c |if flsys|temhandl|
|000003f0| 65 72 20 69 73 20 74 72 | 75 65 2c 20 77 65 20 6f |er is tr|ue, we o|
|00000400| 6e 6c 79 20 63 6f 6e 73 | 69 64 65 72 20 73 79 73 |nly cons|ider sys|
|00000410| 74 65 6d 20 65 76 65 6e | 74 20 68 61 6e 64 6c 65 |tem even|t handle|
|00000420| 72 73 2c 20 69 66 20 66 | 61 6c 73 65 20 0d 09 77 |rs, if f|alse ..w|
|00000430| 65 20 6f 6e 6c 79 20 63 | 6f 6e 73 69 64 65 72 20 |e only c|onsider |
|00000440| 61 70 70 2d 73 70 65 63 | 69 66 69 63 20 68 61 6e |app-spec|ific han|
|00000450| 64 6c 65 72 73 2e 0d 09 | 2a 2f 0d 09 0d 09 4f 53 |dlers...|*/....OS|
|00000460| 45 72 72 20 65 63 3b 0d | 09 45 76 65 6e 74 48 61 |Err ec;.|.EventHa|
|00000470| 6e 64 6c 65 72 50 72 6f | 63 50 74 72 20 68 61 6e |ndlerPro|cPtr han|
|00000480| 64 6c 65 72 3b 0d 09 6c | 6f 6e 67 20 72 65 66 63 |dler;..l|ong refc|
|00000490| 6f 6e 3b 0d 09 0d 09 65 | 63 20 3d 20 41 45 47 65 |on;....e|c = AEGe|
|000004a0| 74 45 76 65 6e 74 48 61 | 6e 64 6c 65 72 20 28 76 |tEventHa|ndler (v|
|000004b0| 63 6c 61 73 73 2c 20 76 | 74 6f 6b 65 6e 2c 20 26 |class, v|token, &|
|000004c0| 68 61 6e 64 6c 65 72 2c | 20 26 72 65 66 63 6f 6e |handler,| &refcon|
|000004d0| 2c 20 66 6c 73 79 73 74 | 65 6d 68 61 6e 64 6c 65 |, flsyst|emhandle|
|000004e0| 72 29 3b 0d 09 0d 09 49 | 41 43 67 6c 6f 62 61 6c |r);....I|ACglobal|
|000004f0| 73 2e 65 72 72 6f 72 63 | 6f 64 65 20 3d 20 65 63 |s.errorc|ode = ec|
|00000500| 3b 0d 09 0d 09 72 65 74 | 75 72 6e 20 28 65 63 20 |;....ret|urn (ec |
|00000510| 3d 3d 20 6e 6f 45 72 72 | 29 3b 0d 09 7d 20 2f 2a |== noErr|);..} /*|
|00000520| 49 41 43 68 61 6e 64 6c | 65 72 69 6e 73 74 61 6c |IAChandl|erinstal|
|00000530| 6c 65 64 2a 2f 0d 0d 0d | 42 6f 6f 6c 65 61 6e 20 |led*/...|Boolean |
|00000540| 49 41 43 69 6e 73 74 61 | 6c 6c 63 6f 65 72 63 69 |IACinsta|llcoerci|
|00000550| 6f 6e 68 61 6e 64 6c 65 | 72 20 28 44 65 73 63 54 |onhandle|r (DescT|
|00000560| 79 70 65 20 66 72 6f 6d | 74 79 70 65 2c 20 44 65 |ype from|type, De|
|00000570| 73 63 54 79 70 65 20 74 | 6f 74 79 70 65 2c 20 50 |scType t|otype, P|
|00000580| 72 6f 63 50 74 72 20 68 | 61 6e 64 6c 65 72 29 20 |rocPtr h|andler) |
|00000590| 7b 0d 09 0d 09 72 65 67 | 69 73 74 65 72 20 4f 53 |{....reg|ister OS|
|000005a0| 45 72 72 20 65 72 72 63 | 6f 64 65 3b 0d 09 0d 09 |Err errc|ode;....|
|000005b0| 65 72 72 63 6f 64 65 20 | 3d 20 41 45 49 6e 73 74 |errcode |= AEInst|
|000005c0| 61 6c 6c 43 6f 65 72 63 | 69 6f 6e 48 61 6e 64 6c |allCoerc|ionHandl|
|000005d0| 65 72 20 28 66 72 6f 6d | 74 79 70 65 2c 20 74 6f |er (from|type, to|
|000005e0| 74 79 70 65 2c 20 68 61 | 6e 64 6c 65 72 2c 20 28 |type, ha|ndler, (|
|000005f0| 6c 6f 6e 67 29 20 30 2c | 20 66 61 6c 73 65 2c 20 |long) 0,| false, |
|00000600| 66 61 6c 73 65 29 3b 0d | 09 0d 09 49 41 43 67 6c |false);.|...IACgl|
|00000610| 6f 62 61 6c 73 2e 65 72 | 72 6f 72 63 6f 64 65 20 |obals.er|rorcode |
|00000620| 3d 20 65 72 72 63 6f 64 | 65 3b 0d 0d 09 72 65 74 |= errcod|e;...ret|
|00000630| 75 72 6e 20 28 65 72 72 | 63 6f 64 65 20 3d 3d 20 |urn (err|code == |
|00000640| 6e 6f 45 72 72 29 3b 0d | 09 7d 20 2f 2a 49 41 43 |noErr);.|.} /*IAC|
|00000650| 69 6e 73 74 61 6c 6c 63 | 6f 65 72 63 69 6f 6e 68 |installc|oercionh|
|00000660| 61 6e 64 6c 65 72 2a 2f | 0d 0d 0d 0d 00 00 00 00 |andler*/|........|
|00000670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000680| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 46 |.......L|...L...F|
|00000690| 01 01 ca 33 01 06 00 80 | 01 01 c0 33 01 08 09 80 |...3....|...3....|
|000006a0| 3b 02 08 fd 06 f5 80 01 | 01 9e 20 2c 01 01 98 f8 |;.......|.. ,....|
|000006b0| 0c 69 61 63 68 61 6e 64 | 6c 65 72 2e 63 08 02 00 |.iachand|ler.c...|
|000006c0| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......|
|000006d0| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......|
|000006e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006f0| 00 00 a9 81 44 d4 00 00 | 00 00 00 00 01 92 57 94 |....D...|......W.|
|00000700| 50 01 04 ea 52 44 50 01 | 24 e2 48 57 94 50 14 04 |P...RDP.|$.HW.P..|
|00000710| e2 26 40 20 0b 58 8f 01 | 66 c4 44 57 94 50 20 2a |.&@ .X..|f.DW.P *|
|00000720| 94 6d 01 60 16 52 5a 5b | 50 01 24 e2 57 94 50 01 |.m.`.RZ[|P.$.W.P.|
|00000730| 04 ea 48 57 94 50 20 40 | 01 66 da 44 50 01 01 c2 |..HW.P @|.f.DP...|
|00000740| 20 0c 4c 01 f7 66 48 6b | 01 00 d0 99 02 65 72 61 | .L..fHk|.....era|
|00000750| 73 20 04 01 00 b8 99 02 | 73 74 72 74 7f 7e 01 00 |s ......|strt.~..|
|00000760| 92 50 01 2f 12 3f 6d 80 | 01 00 9e 50 20 2e 9f 51 |.P./.?m.|...P ..Q|
|00000770| 7e 6a 5a 9f 50 01 24 d2 | 5a 9f 52 99 02 73 6f 70 |~jZ.P.$.|Z.R..sop|
|00000780| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00000790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007a0| 00 00 00 00 00 00 00 06 | 00 04 00 60 00 0c 01 d6 |........|...`....|
|000007b0| 02 40 00 60 00 0c 01 d6 | 02 40 a8 20 77 4d 00 00 |.@.`....|.@. wM..|
|000007c0| 04 b8 00 00 04 b8 00 00 | 03 5d 01 00 00 00 01 00 |........|.]......|
|000007d0| 00 00 01 4c 00 00 00 4c | 00 00 00 46 00 eb 4e cc |...L...L|...F..N.|
|000007e0| 17 e0 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.......2|..MPSR..|
|000007f0| 00 0a 03 ed 00 00 00 00 | 00 00 00 eb 4c a0 13 43 |........|....L..C|
|00000800| 72 65 61 74 65 64 20 62 | 79 20 43 4d 61 73 74 65 |reated b|y CMaste|
|00000810| 72 aa 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |r.......|........|
|00000820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000870| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+